package Leo;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaServer
public class ApplicationStarter {
    public static void main(String[] args) {
//        new SpringApplication(ApplicationStarter.class).run(args);
// 读取控制台输入，决定使用哪个profiles
        Scanner scan = new Scanner(System.in);
//        String profiles = scan.nextLine();
        String profiles = "single";
        new SpringApplicationBuilder(ApplicationStarter.class).profiles(profiles).run(args);
    }
}
